﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>元素加载内容</title>
    <style>
        #frame {
            width: 100%;
            height: 50%;
        }
 
        #txt {
            border: 1px solid #ccc;
            height: 50px;
            color: #000;
        }
    </style>
</head>
<body>
<iframe id="frame">
 
</iframe>
 
<div id="txt"></div>
 
<img id="img">
 
<script type="text/javascript" id="script"></script>
</body>
</html>